let person = 'zhangsan'

person = 'lisi'

const person1 = 'zhangsan'

// person1 = 'wangwu'

type Sex = '男' | '女'

let sex: Sex = '男'

// 字面量的联合类型
// type Direction = 1 | 2 | 3 | 4
type Direction = 'Up' | 'Down' | 'Left' | 'Right'

function changeDirection (direction: Direction) {
  // 1：上 2：下 3：左 4：右
  if (direction === 'Up') {
    // 网上
  }
}

changeDirection('Up')

export {}
